package cn.itxf.pethome.service;

import cn.itxf.pethome.domain.Department;
import cn.itxf.pethome.query.DepartmentQuery;
import cn.itxf.pethome.utils.ResultBean;

import java.util.List;

public interface IDepartmentService {
    //查询全部
    //List<Department> findAll(DepartmentQuery query);

    //高级查询和分页查询
    ResultBean<Department> queryAll(DepartmentQuery query);

    //查询一个
    Department finByid(Long id);

    //添加
    void insert(Department department);

    //修改
    void update(Department department);

    //删除
    void detele(Long id);

    //查询总条数
   // Long findCounAll(DepartmentQuery departmentQuery);
}
